<template>
  <!-- <img alt="Vue logo" src="./assets/logo.png" /> -->
  <!-- <HelloWorld msg="Hello Vue 3 + Vite" /> -->
  <a-config-provider :locale="locale">
    <template #renderEmpty>
      <a-empty description="查无此数据"/>
    </template>
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN'// 引入antd中文包
import { ref } from 'vue'
import moment from 'moment'
import 'moment/locale/zh-cn'

moment.locale(zhCN.locale)
const locale = ref(zhCN)
const token = window.location.search.substring(7);
sessionStorage.setItem('token', token);
</script>

<style>
#app {
  /* font-family: Avenir, Helvetica, Arial, sans-serif; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
/*控制整个滚动条*/
::-webkit-scrollbar {
  background-color: rgba(240, 240, 240, 0.1);
  width: 6px;
  height: 10px;
}

/*滚动条中间滑动部分*/
::-webkit-scrollbar-thumb {
  background-color: #a8a8a859;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(125, 125, 125, 0.8);
}
</style>
